<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
<style>
    .error-page{
        margin: 10% auto;
    }
    .error-page .error-content{
        margin: auto;
        text-align: center;
    }
</style>
<div class="error-page">
    <div class="error-content">
        <h3 class="headline text-red">
            <i class="fa fa-warning text-red"></i> <?=Yii::$app->response->getStatusCode()?>
        </h3>
        <h4 class="headline text-red">
            <?= nl2br(Html::encode($message)) ?>
        </h4>
        <?php if(!get('iframe')):?>
        <h1 class="headline"><a href="/" class="btn btn-link">点击此处返回首页</a></h1>
        <?php endif;?>
    </div>
</div>
